<?php
namespace Home\Model;
use Think\Model\ViewModel;
class ReViewModel extends ViewModel{
	protected $connection = 'CAIWU';
	protected $tablePrefix = '';
    public $viewFields = array(
    'Repaya'=>array('id'=>'aid','repay_money','all_period','period','borrow_no','type','vid','_table'=>"user_repayment_a",'_as'=>'Repaya'),
    'Repayb'=>array('id'=>'bid','repay_no','repayment','repayment_time','pay_money','_table'=>"user_repayment",'_as'=>'Repayb','_on'=>'Repaya.id=Repayb.aid'),
    'Borrow'=>array('is_success','_table'=>"user_borrow",'_as'=>'Borrow','_on'=>'Repaya.borrow_no=Borrow.borrow_no'),
   );
}
?>